package com.lagou.sqlSession;

import java.util.List;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/12/5 13:59
 */
public interface SqlSession {

    /**
     * 查询所有
     */
    public <E> List<E> selectList(String statementid,Object... params) throws Exception;

    /**
     * 查询单个
     */
    public <T> T selectOne(String statementid,Object... params) throws Exception;

    /**
     * 得到映射器
     *
     * @param zy zy
     * @return {@link T}
     */
    public <T> T getMapper( Class<?> zy );
}
